package com.IO.Buffered;

import java.io.BufferedWriter;
import java.io.FileWriter;

/**
 * name：zhangwang
 * time：2025/3/11 23:31
 */
public class Test2 {
    public static void main(String[] args) throws Exception {
        //创建高效字符输出流
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("C.txt"));
        bufferedWriter.write("jbawerilnkboeirws;nbikloerswtnbwsdrftolikhbwsedrfiklnotbnioklk");
        bufferedWriter.newLine();//换行
        bufferedWriter.flush();
        bufferedWriter.write("naiebvklnen");
        bufferedWriter.flush();
        bufferedWriter.close();
    }
}
